package com.romadan.core.wolfram;

import com.wolfram.jlink.Expr;

public class WolframInstance {
	private WolframPerfomer core = null;
	
	public WolframInstance(String fileName) {
		core = new WolframPerfomer();
		core.importPackage(fileName);
	}

	public String getName() {
		Expr eResult=core.evaluateExpr("getName");
		return eResult.toString();
	}

	public Expr getResult(Expr params) {
		Expr eResult=core.evaluateExpr("main["+params+"]");
		return eResult;
	}
}
